package com.fwj.extendsexample;

/**
 * @author stone.feng
 * @since 2019-01-26
 */
public class Cat extends Animal {

    private final static String a;

    static {
        a = "1111";
    }

    @Override
    public void eat() {
        String a = "1";
        String a1 = "kuku";
        String a2 = "掉";
        String str = a2.intern();
        System.out.println("eat fish" + str);


        Object ob = new Object();
        ob.getClass();
    }

    @Override
    public void play() {
        System.out.println("cat play");
    }

    public static void main(String[] args) {
        new Cat().eat();
    }

    private final void method() {
        System.out.println("In Sub...");
    }

}